package it.antonio.ilpizze.te.util;

import it.antonio.ilpizze.reflection.Clazz;
import it.antonio.ilpizze.reflection.MethodAccessor;

public class ValueExtractor {
	public static MethodAccessor getter(Class<?> clazz, String name){
		String methodName = "get" + name.substring(0, 1).toUpperCase() + name.substring(1, name.length());
		return Clazz.get(clazz).findMethod(methodName, new Class[] {});
	}
}
